<div id="sidebar" class="grid_12">
	<div class="item portfolio">
		<h4>Similar Projects</h4>
		
		<?php
		$query = "showposts=10&orderby=rand&cat=";
		
		foreach((get_the_category()) as $category) { 
    		$query .= $category->cat_ID .","; 
		}		
		query_posts($query);
		 ?>
		 <ul style="padding-left:85px; padding-right:85px;">
		 	<?php while (have_posts()) : the_post(); ?>
		 	<li class="grid_3" style="margin-right:35px; background-color:#000;">
				<h4><a href="<?php the_permalink(); ?>">					
					<?php get_the_image( array( 'custom_key' => array( 'thumbnail' ), 'default_size' => 'thumbnail', 'width' => '200', 'link_to_post' => false ) ); ?>		
				</a></h4>
				<a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title() ?></a>		 		
		 	</li>
		 	<?php endwhile; ?>		 
		 </ul>		
	</div>
</div>
